package ysEntry

import (
	"net/url"

	"gitee.com/wchpub/fnsvr"
)

//使用ysToken兑换用户信息
func ApiGetUser(apiUrl, svr, token string) (*RespGetUser, error) {
	params := url.Values{}
	params.Add("svr", svr)
	params.Add("token", token)
	params.Add("action", "get_user")

	return fnsvr.HttpGet[RespGetUser](apiUrl, params)
}
